﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
                    xmlns:TrafficLight="clr-namespace:VisualWip.TrafficLight;assembly=TrafficLight"
                    >

    <DataTemplate DataType="{x:Type TrafficLight:TrafficLightSettingsViewModel}">
        <Label Content="Traffic light" />
    </DataTemplate>

    <DataTemplate DataType="{x:Type TrafficLight:TrafficLightViewModel}">
        <Border  Background="Black"
            CornerRadius="10"
            BorderBrush="Gray"
            BorderThickness="2">
            <StackPanel VerticalAlignment="Center">
                <StackPanel.Resources>
                    <Style TargetType="{x:Type Ellipse}">
                        <Setter Property="Width" Value="100" />
                        <Setter Property="Height" Value="100" />
                        <Setter Property="Fill" Value="LightGray" />
                        <Setter Property="Stroke" Value="Gray" />
                        <Setter Property="StrokeThickness" Value="2" />
                        <Setter Property="Margin" Value="4" />
                    </Style>
                </StackPanel.Resources>
                <Ellipse Fill="LightGray" />
                <Ellipse Fill="LightGray" />
                <Ellipse Fill="Green" />
            </StackPanel>
        </Border>
    </DataTemplate>

    <ribbon:RibbonGroup  x:Key="TrafficLight" Header="{Binding HeaderName}">

                <ribbon:RibbonButton 
										 LargeImageSource="Images\LargeIcon.png"
										 Label="Add Traffic light"
                                         Command="{Binding AddTrafficLightCommand}" />
    </ribbon:RibbonGroup>
</ResourceDictionary>